<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@ include file="/WEB-INF/jsp/include/manager_title.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/manager_common_css.jsp" %>
    <style type="text/css" media="screen">
        <jsp:include page="./skin/default/css/admin.css"/>
    </style>
    <%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>
     <script type="text/javascript">
    //<![CDATA[
    <%@ include file="/js/bbs/bbs.js" %>

    function bbsAdmin(bbsId, cnt) {
        if(bbsId != "") {//게시판 조회 
            $("#bbsId").attr("value", bbsId);
        	$("#command").attr("value", "VIEW");
        	$("#cnt").attr("value", cnt);
        } else //게시판 설정 저장
        	$("#command").attr("value", "MODIFY");
        
    	$("#bbsDefaultSet").submit();
    }
    
  //]]>
    </script>
</head>
<body>
    <%@ include file="/WEB-INF/jsp/include/manager_top.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/adminBbsEachMgntSubMenu.jsp" %>
	<form:form id="bbsDefaultSet" method="post" action="bbsDefaultSet.do" modelAttribute="bbsType" >
		<input type="hidden" id="command" name="command" value="VIEW" />
		<input type="hidden" id="bbsId" name="bbsId" value="" />
		<input type="hidden" id="cnt" name="cnt" value="" />
	    <div id="pw_bbs_list">
	        <div id="pw_bbs_list_header" style="height: 30"></div>
	        <div id="pw_bbs_list_body">
		        <table border="0" cellspacing="0" cellpadding="0" width="700" align="center">
		        	<!--<tr>
		        		<td><br/></td>
		        	</tr>
			        <tr>
				        <td valign="top">
				        	<jsp:include page="./adminBbsTypeList.jsp" />
				    	</td>
				    </tr>
				    --><tr>
				    	<td>
				    		<br/>
				    		<table width="100%" cellspacing="0" cellpadding="2" border="1">
				   				<tbody>
				   					<tr>
									    <td class="titleBlock">게시판 아이디</td>
									    <td><form:input path="bbsId" readonly="true" /></td>
								   	</tr>
				   					<tr>
									    <td class="titleBlock"  >게시판 이름</td>
									    <td><form:input path="bbsName"/></td>
									</tr>
								   	<tr>
									    <td class="titleBlock">게시판 타이틀</td>
									    <td><form:input path="bbsTitle"/></td>
								   	</tr>
								   	<tr>
									    <td class="titleBlock">게시판 커멘트</td>
									    <td><form:textarea path="bbsComment" rows="5" cols="50"/></td>
								   	</tr>
								   	<tr>
									    <td class="titleBlock">게시판 생성자</td>
									    <td><form:input path="userID" readonly="true"/></td>
								   	</tr>
								   	<tr>
									    <td class="titleBlock">게시판 생성일</td>
									    <td><form:input path="registTimestamp" readonly="true" /></td>
								   	</tr>
								   	<tr>
									    <td class="titleBlock">게시판 최근 수정일</td>
									    <td><form:input path="modifyTimestamp" readonly="true" /></td>
								   	</tr>
								</tbody>
							</table>
				    	</td>
				   	</tr>
				   	<tr>
				    	<td>
					        <table width="700" >
								<tr>
				           			<td align="center">
				           				<input type="button"  value="저장" name="bbsAdminSave" onclick="bbsAdmin('','');"/>
				           			</td>
				           			<td align="center">
				           			<!--  	<input type="button"  value="목록" name="bbsAdminList" onclick="bbsAdmin('','');"/> -->
				           				<a href="<c:url value="/admin/adminBbsList.do"/>">목록</a>
				           			</td>
				           		</tr>
							</table>
						</td>
					</tr>
		    	</table>
			</div>
	    </div>
    </form:form>
	<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>    
</body>
</html>